From 2b903de133e02b91ae43c7347a1b3cdad4fb5810 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonas=20=C3=85dahl?= Date: Wed, 25 Feb 2026 21:19:57 +0100 Subject: [PATCH] Pass NULL as color state when capturing stage NULL means the default color state of the stage will be used, which is what happened before. Part-of: --- js/ui/layout.js | 2 +- src/shell-screenshot.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/js/ui/layout.js b/js/ui/layout.js index e68780d0e..7b8af4726 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -1408,7 +1408,7 @@ class ScreenTransition extends Clutter.Actor { height: global.screen_height, }); const [, , , scale] = global.stage.get_capture_final_size(rect); - this.content = global.stage.paint_to_content(rect, scale, Clutter.PaintFlag.NO_CURSORS); + this.content = global.stage.paint_to_content(rect, scale, null, Clutter.PaintFlag.NO_CURSORS); this.opacity = 255; this.show(); diff --git a/src/shell-screenshot.c b/src/shell-screenshot.c index d1ded8c0b..facb6b530 100644 --- a/src/shell-screenshot.c +++ b/src/shell-screenshot.c @@ -340,6 +340,7 @@ do_grab_screenshot (ShellScreenshot *screenshot, cairo_image_surface_get_data (image), cairo_image_surface_get_stride (image), COGL_PIXEL_FORMAT_CAIRO_ARGB32_COMPAT, + NULL, paint_flags, &error)) { @@ -492,6 +493,7 @@ grab_screenshot_content (ShellScreenshot *screenshot, screenshot->scale = scale; content = clutter_stage_paint_to_content (stage, &screenshot_rect, scale, + NULL, CLUTTER_PAINT_FLAG_NO_CURSORS, &error); if (!content) -- 2.39.5